﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Event.UI
{
    /// <summary>
    /// 自动播放事件
    /// </summary>
    public class UIAutoPlayEvent : UIEvent
    {
        /// <summary>
        /// false：停止自动播放，true：开始自动播放
        /// </summary>
        public bool IsEnable { get; private set; }

        /// <summary>
        /// 构造自动播放事件
        /// </summary>
        /// <param name="isEnable">是否启用，false：停止自动播放，true：开始自动播放</param>
        public UIAutoPlayEvent(bool isEnable)
        {
            IsEnable = isEnable;
        }
    }
}
